x11: Move the EGL display into the private struct
authorBenjamin Otte <otte@redhat.com>
Mon, 7 Jun 2021 12:30:29 +0000 (14:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:05 +0000 (16:06 +0200)
commitbdb49720be78ed271141f848271b51e5f73e29d1
tree4ab4bdf226884d5452a35ffd9e7eaca937bb2711
parent1d448a2b8a2aa264966b22f7a692e7783deed39f
x11: Move the EGL display into the private struct

There's no need to use g_object_set_data() for it.

We can also stop caching it elsewhere because we know the display has
it.

And finally, we can remove the display->have_egl boolean and use
display->egl_display != NULL instead. We initialize the display at
startup, so that variable is the perfect indicator.
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-x11.c